const identity = [
  {
    path: 'identity',
    component: () => import(/* webpackChunkName: "platform" */ '@/layout/platform'),
    name: 'Identity',
    redirect: '/identity',
    meta: { title: 'identity', code: 'Identity', icon: 'icon_identity', deleteCode: true },
    children: [
      {
        path: 'organization',
        name: 'Organization',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/organ_index'),
        meta: { title: 'organization', code: 'Organization', icon: 'icon_orgnization', allIdentity: true },
        children: [
          {
            path: '',
            name: 'Organization',
            hidden: true,
            meta: { title: 'organization', code: 'Organization', breadcrumb: false },
            component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/organization')
          },
          {
            path: 'organization_orgget',
            name: 'OrganizationGet',
            hidden: true,
            meta: { title: 'OrganizationGet', code: 'OrganizationGet', icon: 'icon_orgnization' }
          },
          {
            path: 'organization_orgcret',
            name: 'OrganizationCreate',
            hidden: true,
            meta: { title: 'OrganizationCreate', code: 'OrganizationCreate', icon: 'icon_orgnization' }
          },
          {
            path: 'organization_orgup',
            name: 'OrganizationUpdate',
            hidden: true,
            meta: { title: 'OrganizationUpdate', code: 'OrganizationUpdate', icon: 'icon_orgnization' }
          },
          {
            path: 'organization_orgdel',
            name: 'OrganizationDelete',
            hidden: true,
            meta: { title: 'OrganizationDelete', code: 'OrganizationDelete', icon: 'icon_orgnization' }
          },
          {
            // 注册人员基本资料
            path: 'teamPersonalInfo',
            name: 'TeamPersonalInfo',
            hidden: true,
            meta: { title: 'registerPersonalInfo', code: 'Organization' },
            component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/registerPersonal/info.vue')
          },
          { // 注册人员
            path: 'registerPersonal',
            name: 'RegisterPersonal',
            hidden: true,
            meta: { title: 'registerPersonal', code: 'Organization' },
            component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/registerPersonal/index.vue'),
            children: [
              { // 注册人员列表
                path: '',
                name: 'RegisterPersonal',
                hidden: true,
                meta: { title: 'registerPersonal', code: 'Organization', breadcrumb: false, activeMenu: '/identity/organization' },
                component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/registerPersonal/main.vue')
              },
              { // 注册人员基本资料
                path: 'registerPersonalInfo',
                name: 'RegisterPersonalInfo',
                hidden: true,
                meta: { title: 'registerPersonalInfo', code: 'Organization', activeMenu: '/identity/organization' },
                component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/registerPersonal/info.vue')
              }
            ]
          },
          // 注册机构
          {
            path: 'enrollorganization',
            name: 'Enrollorganization',
            hidden: true,
            meta: { title: 'enrollorganization', code: 'Organization' },
            component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/enrollorganization/index.vue'),
            children: [
              {
                path: '',
                name: 'Enrollorganization',
                hidden: true,
                meta: { code: 'Organization', breadcrumb: false, activeMenu: '/identity/organization' },
                component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/enrollorganization/components/organization.vue')
              },
              {
                path: 'detail',
                name: 'Organizationdetail',
                hidden: true,
                meta: { title: 'organizationdetail', code: 'Organization', activeMenu: '/identity/organization' },
                component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/enrollorganization/components/organizationdetail.vue')
              },
              {
                path: 'memberlist',
                hidden: true,
                meta: { title: 'organizationmember', code: 'Organization', activeMenu: '/identity/organization' },
                component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/enrollorganization/components/index.vue'),
                children: [
                  {
                    path: '',
                    name: 'Memberlist',
                    hidden: true,
                    meta: { code: 'Organization', activeMenu: '/identity/organization' },
                    component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/enrollorganization/components/member.vue')
                  },
                  {
                    path: 'member',
                    name: 'Member',
                    hidden: true,
                    meta: { title: 'registerPersonalInfo', code: 'Organization', activeMenu: '/identity/organization' },
                    component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/registerPersonal/info.vue')
                  }
                ]
              }
            ]
          },
          // { // 级段位
          //   path: 'danGrade',
          //   name: 'DanGrade',
          //   hidden: true,
          //   meta: { title: 'danGrade', code: 'Organization' },
          //   component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/danGrade/index.vue'),
          //   children: [
          //     {
          //       path: '',
          //       name: 'DanGrade',
          //       hidden: true,
          //       meta: { title: 'danGrade', code: 'Organization', breadcrumb: false },
          //       component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/danGrade/main.vue')
          //     },
          //     {
          //       path: 'danGradeDetail',
          //       name: 'DanGradeDetail',
          //       hidden: true,
          //       meta: { title: 'danGradeDetail', code: 'Organization' },
          //       component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/danGrade/detail.vue')
          //     },
          //     {
          //       path: 'danGradePart',
          //       name: 'DanGradePart',
          //       hidden: true,
          //       meta: { title: 'danGradePart', code: 'Organization' },
          //       component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/danGrade/participant.vue')
          //     }
          //   ]
          // },
          // { // 会员费
          //   path: 'memberDues',
          //   name: 'MemberDues',
          //   hidden: true,
          //   meta: { title: 'memberDues', code: 'Organization' },
          //   component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/memberDues/index.vue'),
          //   children: [
          //     {
          //       path: '',
          //       name: 'MemberDues',
          //       hidden: true,
          //       meta: { title: 'memberDues', code: 'Organization', breadcrumb: false },
          //       component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/memberDues/main.vue')
          //     },
          //     {
          //       path: 'memberList',
          //       name: 'MemberList',
          //       hidden: true,
          //       meta: { title: 'memberList', code: 'Organization' },
          //       component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/memberDues/memberList.vue')
          //     }
          //   ]
          // },
          { // 商城
            path: 'mall',
            hidden: true,
            meta: { title: 'mallData', code: 'Organization' },
            component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/mall/index.vue'),
            children: [
              {
                path: '',
                name: 'Mall',
                hidden: true,
                meta: { code: 'Organization', breadcrumb: false, activeMenu: '/identity/organization' },
                component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/mall/components/malllist.vue')
              },
              {
                path: 'lookgoods',
                name: 'Lookgoods',
                hidden: true,
                meta: { title: 'goodsdata', code: 'TAManagement', activeMenu: '/identity/organization' },
                component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/mall/components/lookgoods.vue')
              }
            ]
          },
          { // 赛事
            path: 'game',
            name: 'Game',
            hidden: true,
            meta: { title: 'game', code: 'Organization' },
            component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/game/index'),
            children: [
              {
                path: '',
                name: 'Gametap',
                hidden: true,
                meta: { code: 'Organization', breadcrumb: false, activeMenu: '/identity/organization' },
                component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/game/gametap')
              },
              {
                path: 'gamedata/:id',
                name: 'Gamedata',
                hidden: true,
                meta: { title: 'gameData', code: 'Organization', breadcrumb: true, animateKey: '/gamedata/:id', activeMenu: '/gamedata', parentRouteName: 'Game' },
                component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/game/gamedata/mainIndex')
              },
              {
                path: 'leaguegame',
                name: 'Leaguegame',
                hidden: true,
                meta: { title: 'fengameData', code: 'Organization', breadcrumb: true, activeMenu: '/identity/organization' },
                component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/game/leaguegame/leaguegametap')
              },
              {
                path: 'LeaguegameData',
                name: 'LeaguegameData',
                hidden: true,
                meta: { title: 'gameData', code: 'Organization', breadcrumb: true, activeMenu: '/identity/organization' },
                component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/game/components/leagueGameData')
              }]
          },
          { // 培训
            path: 'train',
            hidden: true,
            meta: { title: 'train', code: 'Organization' },
            component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/train/index'),
            children: [
              {
                path: '',
                name: 'Train',
                hidden: true,
                meta: { code: 'Organization', breadcrumb: false, activeMenu: '/identity/organization' },
                component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/train/trainlist')
              }, {
                path: 'traindata',
                name: 'Traindata',
                hidden: true,
                meta: { title: 'gameData', code: 'Organization', breadcrumb: true, activeMenu: '/identity/organization' },
                component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/train/traindata/mainIndex')
              }]
          },
          { // 数据
            path: 'organData',
            hidden: true,
            meta: { title: 'organData', code: 'Organization' },
            component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/organData/index.vue'),
            children: [
              {
                path: '',
                hidden: true,
                name: 'OrganData',
                meta: { title: 'organData', code: 'Organization', breadcrumb: false, activeMenu: '/identity/organization' },
                component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/organData/main.vue')
              },
              {
                path: 'dataDetails',
                hidden: true,
                name: 'DataDetails',
                meta: { title: 'dataDetails', code: 'Organization', activeMenu: '/identity/organization' },
                component: () => import (/* webpackChunkName: "platform" */ '@/views/identity/organData/dataDetails.vue')
              }
            ]
          }
        ]
      },
      {
        path: 'roles',
        name: 'Roles',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/identity/rolesIndex'),
        meta: { title: 'roles', code: 'Roles', icon: 'icon_roles', allIdentity: true },
        children: [
          {
            path: 'roles_orgget',
            name: 'RolesCreate',
            hidden: true,
            meta: { title: 'RolesCreate', code: 'RolesCreate', icon: 'icon_orgnization' }
          },
          {
            path: 'roles_orgcret',
            name: 'RolesUpdate',
            hidden: true,
            meta: { title: 'RolesUpdate', code: 'RolesUpdate', icon: 'icon_orgnization' }
          },
          {
            path: 'roles_orgup',
            name: 'RolesDelete',
            hidden: true,
            meta: { title: 'RolesDelete', code: 'RolesDelete', icon: 'icon_orgnization' }
          }
        ]
      }
    ]
  },
  // 角色权限赋权使用 不渲染侧边栏
  {
    // 培训等级
    path: 'taManagement1',
    hidden: true,
    meta: {
      title: 'taManagement',
      code: 'TAManagement'
    }
  }
];

export default [
  ...identity
];
